//
//  SZKCustomAlter.m
//  设计吧
//
//  Created by Tz on 2018/3/26.
//  Copyright © 2018年 Tz. All rights reserved.
//

#import "SZKCustomAlter.h"

@implementation SZKCustomAlter
+(void)showAlter:(NSString *)message
{
    UIAlertView *alter = [[UIAlertView alloc]initWithTitle:nil message:message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];
    [NSTimer scheduledTimerWithTimeInterval:ALTERTIME target:self selector:@selector(timerAction:) userInfo:alter repeats:NO];
    [alter show]; }
+(void)timerAction:(NSTimer *)timer {
    UIAlertView *alter=(UIAlertView *)[timer userInfo];
    [alter dismissWithClickedButtonIndex:0 animated:YES];
    
}
@end
